# 一个学校，有3个办公室，现有8位老师等待工位的分配，请编写程序，完成随机的分配
office = [[],[],[]]
teacher = ['t1','t2','t3','t4','t5','t6','t7','t8']

import random

for t in teacher:
    index = random.randint(0,2)
    office[index].append(t)
print(office)


office_list = [[],[],[]]
teacher_list = list('12345678')
for name in teacher_list:
    index = random.randint(0,2)
    office_list[index].append(name)
print(office_list)